package rg.edu.ap.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import rg.edu.ap.dao.BathDao;
import rg.edu.ap.po.Bath;
import rg.edu.ap.service.BathService;
@Service
public class BathServiceImpl implements BathService{
	
	@Autowired
	private BathDao bathdao;
	
	public int addBath(Bath bath) {
		return bathdao.addBath(bath);
	}
	
	public List searchBath(String userprovince, String usercity, String userdistrict) {
		return bathdao.searchBath(userprovince,usercity,userdistrict);
	}
	
	public int baseBath(Bath bath) {
		return bathdao.baseBath(bath);
	}
	
	public Bath getBathid(int merid) {
		return bathdao.getBathid(merid);
	}

}
